<?php
/**
 * Created by PhpStorm.
 * User: fyl
 * Date: 2016/11/21
 * Time: 14:14
 */

/**
 * Class Involved_UserModel
 */

class Involved_UserFundModel extends BaseModel{

    protected $table = 'user_fund';

    /**
     * @param $user_id
     * @return mixed
     * 获取用户资产
     */
    public function GetUserFund($user_id)
    {
        return DB::table($this->table)
            ->where('user_id',$user_id)
            ->first();
    }

    /**
     * @param $user_id
     * @return mixed
     * 获取用户资产
     */
    public function GetFund($user_id)
    {
        return DB::table($this->table)
            ->select('user_id','money_deposit','money_award','money_return','money_freeze')
            ->where('user_id',$user_id)
            ->first();
    }


}